package org.example.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class RedPacketActivity implements Serializable {
    private static final long serialVersionUID = 1L; //完成序列化操作
    @TableId(type = IdType.AUTO,value = "id")
    private Integer id;//"主键"
    @TableField(value = "title")
    private String title;//"活动标题"
    @TableField(value = "total_amount")
    private Double total_amount;//"红包总金额"
    @TableField(value = "total_packets")
    private Integer total_packets;//"红包总数量"
    @TableField(value = "start_time")
    private LocalDateTime start_time;//"开始时间"
    @TableField(value = "end_time")
    private LocalDateTime end_time;//"结束时间"
    @TableField(value = "status")
    private Integer status;//"状态"'0-未开始 1-进行中 2-已结束'

//    @TableField(exist = false)
//    private UserRedPacket userRedPacket=new UserRedPacket();
}
